package com.bs.manager05.service.impl;

import com.bs.manager05.entity.Menu;
import com.bs.manager05.mapper.MenuMapper;
import com.bs.manager05.service.IMenuService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 菜单管理表 服务实现类
 * </p>
 *
 * @author yao
 * @since 2022-12-18
 */
@Service
public class MenuServiceImpl extends ServiceImpl<MenuMapper, Menu> implements IMenuService {

    @Resource
    MenuMapper mapper;
    @Override
    public List<Menu> getByPid(String pid) {
        return mapper.getByPid(pid);
    }

    @Override
    public List<Menu> getMenus(String userid, String pid) {
        return mapper.getMenus(userid, pid);
    }

    @Override
    public List<String> getPremission(String userid) {
        return mapper.getPremission(userid);
    }
}
